package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysYongyouWldaMapper;
import com.ruoyi.system.domain.SysYongyouWlda;
import com.ruoyi.system.service.ISysYongyouWldaService;

/**
 * 物料档案Service业务层处理
 * 
 * @author SYF
 * @date 2025-04-18
 */
@Service
public class SysYongyouWldaServiceImpl implements ISysYongyouWldaService 
{
    @Autowired
    private SysYongyouWldaMapper sysYongyouWldaMapper;

    /**
     * 查询物料档案
     * 
     * @param name 物料档案主键
     * @return 物料档案
     */
    @Override
    public SysYongyouWlda selectSysYongyouWldaByName(String name)
    {
        return sysYongyouWldaMapper.selectSysYongyouWldaByName(name);
    }

    /**
     * 查询物料档案列表
     * 
     * @param sysYongyouWlda 物料档案
     * @return 物料档案
     */
    @Override
    public List<SysYongyouWlda> selectSysYongyouWldaList(SysYongyouWlda sysYongyouWlda)
    {
        return sysYongyouWldaMapper.selectSysYongyouWldaList(sysYongyouWlda);
    }

    /**
     * 新增物料档案
     * 
     * @param sysYongyouWlda 物料档案
     * @return 结果
     */
    @Override
    public int insertSysYongyouWlda(SysYongyouWlda sysYongyouWlda)
    {
        return sysYongyouWldaMapper.insertSysYongyouWlda(sysYongyouWlda);
    }

    /**
     * 修改物料档案
     * 
     * @param sysYongyouWlda 物料档案
     * @return 结果
     */
    @Override
    public int updateSysYongyouWlda(SysYongyouWlda sysYongyouWlda)
    {
        return sysYongyouWldaMapper.updateSysYongyouWlda(sysYongyouWlda);
    }

    /**
     * 批量删除物料档案
     * 
     * @param names 需要删除的物料档案主键
     * @return 结果
     */
    @Override
    public int deleteSysYongyouWldaByNames(String[] names)
    {
        return sysYongyouWldaMapper.deleteSysYongyouWldaByNames(names);
    }

    /**
     * 删除物料档案信息
     * 
     * @param name 物料档案主键
     * @return 结果
     */
    @Override
    public int deleteSysYongyouWldaByName(String name)
    {
        return sysYongyouWldaMapper.deleteSysYongyouWldaByName(name);
    }
}
